<!DOCTYPE html><html lang="zh-Hans-CN"><head>	<meta charset="UTF-8">	<title>批量添加对象</title></head><body>	<h3>批量添加对象</h3>	<hr>	<script>		//假设数据库创建及对象仓库初始化工作已经完成，同edu_17_1_5.html		for(let i = 0; i < booklists.length; i++) {			request = objectStore.add(booklists[i]);			request.onerror = function() {				console.error('数据库中已有该对象,不能重复添加！！');			};			request.onsuccess = function() { //控制台输出或某个HTML标记内输出				console.log('对象已成功存入对象仓库中！')			};		}	</script>	<hr>	<p> <script>document.write(document.lastModified);</script> <a href="index.html">返回本章目录</a></p></body></html>